﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Example05_Sharp
{
    class Rectangle:Polygon
    {
        public Rectangle(int w, int h):base(w)
    {
        height=h;
    }
    public int Area()
    {
        return(width*height);
    }
   }
}
